package com.example.mylibrarybase.yumengmeng04.adapter;

import android.content.Context;

import com.example.mylibrarybase.R;
import com.example.mylibrarybase.yumengmeng04.base.BaseListViewAdapter_04;
import com.example.mylibrarybase.yumengmeng04.bean.oder_04;
import com.example.mylibrarybase.yumengmeng04.view.MyViewHolder_04;

import java.util.ArrayList;


/**
 * Created by 35876 于萌萌
 * 创建日期: 16:00 . 2016年10月08日
 * 描述:
 * <p>
 * <p>
 * 备注:
 */
public class MyListView_04_more extends BaseListViewAdapter_04<oder_04.ResultBean> {


    public MyListView_04_more(Context context, int type, ArrayList datas, CallBack mCallBack) {
        super(context, type, datas, mCallBack);
    }

    //如果不是  正常 加上加载更多的话 就重写
    public int getViewType(oder_04.ResultBean resultBean ,int position){
        int i = Integer.parseInt(resultBean.delay);
        if (position == mDatas.size()) {
            return R.layout.load_more;
        }
        else if (i==1){
            return R.layout.item_photo_layout_02;
        }else if (i==2){
            return R.layout.item_view_13;
        }else{
            return R.layout.item_listview_04;
        }
    }
    @Override
    public void convert(MyViewHolder_04 helper, oder_04.ResultBean item, int position) {
        int i = Integer.parseInt(item.delay);

        int i1 = getViewType(item, position);
        if (i1 == R.layout.item_listview_04) {
//            LogUtils.i("现在的" + position + "内容是" + item);
//            if (item.bidding_files.size() > 0) {
//                oder_04.ResultBean.BiddingFilesBean biddingFilesBean = item.bidding_files.get(0);
//                String file_path = biddingFilesBean.file_path;
//                helper.initImage(mContext, R.id.item_order_facebook_item_sellerImg, netWork.serverURL + file_path);
//            }
//            helper.initText(R.id.item_order_tv_phone, item.phone1);
//            helper.initText(R.id.item_tv_Order_status, item.status);
//            LinearLayout linearLayout = helper.initLinearLayout(mContext, R.id.ll_mid);

        } else if (i1 == R.layout.item_photo_layout_02) {
        } else if (i1 == R.layout.item_view_13) {
        }



    }
}
